import Vue from 'vue'
import './plugins/axios'
import App from './App.vue'
import router from './router'
import store from './store'
import Vant from 'vant';
import 'vant/lib/index.css'

Vue.use(Vant);
Vue.config.productionTip = false;
Vue.filter('timer', function (originVal) {
  const dt = new Date(originVal)

  const mm = (dt.getMinutes() + '').padStart(2, '0')
  const ss = (dt.getSeconds() + '').padStart(2, '0')
  return `${mm} : ${ss}`
});

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
